package admin.auth;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;

import admin.web.handler.GlobalExceptionHandler;
import admin.redis.RedisConfig;
import admin.redis.service.impl.RedisServiceImpl;



@Import({GlobalExceptionHandler.class, RedisConfig.class, RedisServiceImpl.class})
@EnableFeignClients(basePackages = {"admin.auth.feign","admin.auth.feishu.feign"})
@EnableDiscoveryClient
@SpringBootApplication(scanBasePackages = {"admin"},
//如果项目不需要数据库相关信息就排除此类的autoconfig
exclude = DataSourceAutoConfiguration .class)
public class AdminAuthServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(AdminAuthServerApplication.class, args);
    }

}

